package com.tang.websocket.v1;

/**
 * @author Tang
 * @classname CloseStatus
 * @description [  ]
 * @date 2022/11/25 17:16
 */
public final class CloseStatus {

    public static final CloseStatus NORMAL = new CloseStatus(1000);

    public static final CloseStatus PROTOCOL_ERROR  = new CloseStatus(1002);

    private final int code;

    public CloseStatus(int code) {
        this.code = code;
    }
}
